const { contextBridge, ipcRenderer } = require('electron');

// 安全地暴露 ipcRenderer 方法给渲染进程
contextBridge.exposeInMainWorld('electronAPI', {
    fetchLotteryData: (lotteryType, periodCount) => ipcRenderer.invoke('fetch-lottery-data', lotteryType, periodCount)
});